-
Notifications
You must be signed in to change notification settings - Fork 346
Agent Builder #1291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Agent Builder #1291
Conversation
| customResourceProvider, | ||
| dockerImageAsset.imageUri | ||
| ); | ||
| const agentCoreRuntimeRole = this.createAgentCoreRuntimeRole(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
私の環境依存かもしれませんが、以下のエラーが発生していました。;
AgentCoreStack: creating CloudFormation changeset...
10:35:07 | CREATE_FAILED | AWS::BedrockAgentCore::Runtime | GenericAgentCoreGe...eRuntimeL1B2F7F803
Resource handler returned message: "Invalid request provided: Access denied while validating ECR URI 'xxxx.dkr.ecr.us-east-1.amazonaws.com/c
dk-hnb659fds-container-assets-xxxxx-us-east-1:93a0bc6401c8848c3174de19d2010ba5897f4c44ebd6dd72ac3d3b9364165d52'. The execution role requires
permissions for ecr:GetAuthorizationToken, ecr:BatchGetImage, and ecr:GetDownloadUrlForLayer operations. (Service: BedrockAgentCoreControl, Status C
ode: 400, Request ID: b4d1d923-6c79-47b4-afd5-fe87c4a7fa98) (SDK Attempt Count: 1)" (RequestToken: edb004fc-9aa1-c040-b839-a4707f45513d, HandlerErro
rCode: InvalidRequest)grantPull をつけて解消させました。vibe 解決させたのでもう少し良い改善方法があるかもしれませんが取り急ぎ共有です。
| const agentCoreRuntimeRole = this.createAgentCoreRuntimeRole(); | |
| const agentCoreRuntimeRole = this.createAgentCoreRuntimeRole(); | |
| dockerImageAsset.repository.grantPull(agentCoreRuntimeRole); |
| } from '@aws-sdk/client-cognito-identity-provider'; | ||
|
|
||
| // Initialize Cognito client | ||
| const cognitoClient = new CognitoIdentityProviderClient({}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これ閉域だと endpoint 指定しないとバグる気がする。
https://github.com/aws-samples/generative-ai-use-cases/pull/1252/files
対応わからなければ後で自分が修正するので、そのままでも良いです。
| new LambdaIntegration(agentBuilderFunction), | ||
| commonAuthorizerProps | ||
| ); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これ construct 分離したほうが良いかもしれないです。
|
|
||
| // Deploy runtimes based on flags | ||
| this.deployGenericRuntime(); | ||
| this.deployAgentBuilderRuntime(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これって正しいですか?フラグのどちらかが true の場合に両方の runtime を作っているように見える。
| "flows": [], | ||
| "agentBuilderEnabled": false, | ||
| "createGenericAgentCoreRuntime": false, | ||
| "agentCoreExternalRuntimes": [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
今回の対応関係ないですが、agentCoreRegion が抜けているかもしれないです!
ついでに入れてもらえるとありがたい
Description of Changes
createGenericAgentCoreRuntime: falseonce, deploy again withcreateGenericAgentCoreRuntime: trueChecklist
npm run cdk:testand if there are snapshot differences, executenpm run cdk:test:update-snapshotto update snapshots